home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / GRAPHICS / RAYTRACING / POVRAY3 / POV301 / povray3 / povscn / level1 / pov / interp < prev    next >
Text File  |  1995-11-08  |  1KB  |  66 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Imagemap interpolation example
  3. // File by Drew Wells
  4. // NOTE: Requires "test.gif"
  5.  
  6. #version 3.0
  7. global_settings { assumed_gamma 2.2 }
  8.  
  9. #include "colors.inc"
  10.  
  11.  
  12. #declare Bilinear = 2.0
  13. #declare Norm_Dist = 4.0
  14. #declare TestMap = "test.gif"             // use your own, if you wish
  15.  
  16. camera {
  17.    location <0.0, 0.0, -2.0>
  18.    direction <0.0, 0.0, 1.0>
  19.    up  <0.0, 1.0, 0.0>
  20.    right <4/3, 0.0, 0.0>
  21.    look_at <0, 0, 0>
  22. }
  23.  
  24. light_source { <100.0, 120.0, -130.0> colour White }
  25.  
  26. #default {
  27.    finish {
  28.       ambient 0.2
  29.       diffuse 0.8
  30.       specular 0.3
  31.       roughness 0.002
  32.       brilliance 2
  33.    }
  34. }
  35.  
  36. // Left hemisphere: no interpolation
  37. union {
  38.     sphere { 0, 1.0
  39.        clipped_by { plane { x, 0 } }
  40.        pigment {
  41.           image_map {
  42.             gif TestMap
  43.             map_type 1                    // spherical map type
  44.             interpolate 0
  45.           }
  46.        }
  47.        translate -0.035*x                 // move hemi-sphere left
  48.     }
  49.  
  50.     // Right hemisphere: try both Binlinear (1) and Norm_Dist (2)
  51.     sphere { 0, 1.0
  52.        clipped_by { plane { -x, 0 } }
  53.        pigment {
  54.           image_map {
  55.             gif TestMap
  56.             map_type 1                    // spherical map type
  57.             interpolate Norm_Dist
  58.           }
  59.        }
  60.        translate 0.035*x                  // move hemi-sphere right
  61.     }
  62.     rotate <45, 0, 0>
  63. }
  64.  
  65.  
  66.